package com.qyhl.module_home.home;


import com.qyhl.webtv.commonlib.entity.config.AppConfigBean;

/**
 * Created by qyhl on 2017/10/9.
 */

public class HomePresenter implements HomeContract.HomePresenter {
    private HomeActivity mView;
    private HomeModel mModel;

    HomePresenter(HomeActivity mView) {
        this.mView = mView;
        this.mModel = new HomeModel(this);
    }

    @Override
    public void getConfig() {
        mModel.getConfig();
    }

    @Override
    public void setConfigError() {
        mView.setConfigError();
    }

    @Override
    public void setConfig(AppConfigBean bean) {
        mView.initView(bean);
    }
}
